<!DOCTYPE html>
<html lang="en">
<!-- 提交报修信息页面 -->
<?php
// 判断是否正常访问
session_start();
if (!isset($_SESSION['USER'])) {
    echo "<script>alert('非法访问！请先登录！');window.location.href='../../../index.html';</script>";
    die();
}

if (empty($_GET['fix_id'])) {
    echo "<script>alert('非法传参！');window.location.href='../../../index.html';</script>";
    die();
}
else{
    $fix_id = $_GET['fix_id'];
}
?>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>校园报修系统 · 用户</title>
    <link rel="icon" href="../img/ICO.png">
    <link rel="stylesheet" href="../bootstrap-5.3.3-dist/bootstrap.min.css">
    <link rel="stylesheet" href="css/all.min.css">
    <script src="../bootstrap-5.3.3-dist/bootstrap.min.js"></script>
    <link rel="stylesheet" href="css/u-public.css">
    <link rel="stylesheet" href="css/u-showfixinfo.css">
</head>

<body>
    <header class="sticky-top">
        <nav class="navbar navbar-expand-lg bg-body-tertiary bg-dark border-body" data-bs-theme="dark">
            <div class="container-fluid">
                <a class="navbar-brand" href="u-main.php">
                    <img src="../img/logo-0.png" alt="Logo" height="50" class="d-inline-block align-text-top">
                </a>
                <div class="collapse navbar-collapse" id="navbarNav">
                    <i class="fas fa-map-marker-alt" style="color: white;"> 位置：</i>
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class="nav-link" onclick="javascript:history.back(-1);" href="javascript:;">返回 &gt;</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link active" aria-current="page" href="javascript:;">信息详情查看</a>
                        </li>
                    </ul>
                </div>
                <span class="navbar-text navbar-text-control">
                    <i class="fa fa-user-friends" style="color: white; font-size: 25px"></i>
                    当前登录：
                    <?php echo $_SESSION['USER']["u_name"]; ?>
                </span>
                <a class="navbar-brand" href="php/logout.php">
                    <i class="far fa-arrow-alt-circle-left" style="color: white; font-size: 25px" title="退出登录"></i>
                </a>
            </div>
        </nav>
    </header>
    <main>
        <div class="main-div">
            <div class="main-div-fixinfo-show">
                <h2><i class="far fa-sticky-note" style="font-size: 30px;"></i> 信息详情查看</h2>
                <span class="fixinfo-show-tips">可以查看此条报修申请的基本信息、维修信息、反馈信息等</span>
                <hr>
                <?php
                    include_once("php/get-fixinfo.php");
                    get_show_info($fix_id);
                ?>
            </div>
        </div>
    </main>
    <footer class="fixed-bottom">
        校园报修系统© 2025®
    </footer>
</body>

</html>